function Ajax(){
    
    var m_path;
    var m_postData;
    var m_success;
    var m_failure;
    
    this.create = function( data ){
            
        m_path      = data.path     || "./path";
        m_postData  = data.postData || {};
        m_success   = data.success  || function(){};
        m_failure   = data.failure  || function(){};

        return this;
    };
    
    this.run = function(){
        
        var promise = $.getJSON( m_path, m_postData );
        
        promise.done( m_success );
        promise.fail( m_failure );
    };
    
    return this;
};
